/**
 *	@file	pgtel_def.h
 *	@brief	ポケギア　電話アプリ　リテラル定義ファイル
 *	@author	Miyuki Iwasawa
 *	@date	07.10.16
 */

#ifndef __H_PGTEL_DEF_H__
#define __H_PGTEL_DEF_H__

#define WORDSET_PGTEL_BUFLEN	(32)
#define MSG_PGTEL_BUFLEN		(640)

//下画面説明文
typedef enum{
 MIDX_EXP_NULL = 0,
 MIDX_EXP_CONTROL = 0,
 MIDX_EXP_SORT,
 MIDX_EXP_DEPOSIT,
 MIDX_EXP_SBOX_CB01,
 MIDX_EXP_SBOX_CB02,
 MIDX_EXP_SBOX_CB03,
 MIDX_EXP_SBOX_CB04,
 MIDX_EXP_SBOX_CB05,
 MIDX_EXP_MAX,
};

///リストのライン項目数
#define LIST_LINE_MAX	(8)
#define LIST_VIEW_MAX	(6)	///<見える項目数

///リスト描画パレット定義
#define LIST_COL01_FPAL1	(0x01)
#define LIST_COL01_SPAL1	(0x02)
#define LIST_COL01_RPAL1	(0x03)
#define LIST_COL01_RSPAL1	(0x04)
#define LIST_COL01_FPAL2	(0x05)
#define LIST_COL01_SPAL2	(0x06)
#define LIST_COL01_RPAL2	(0x07)
#define LIST_COL01_RSPAL2	(0x08)
#define LIST_COL01_BPAL1	(0x09)
#define LIST_COL01_BPAL2	(0x0a)
#define LIST_COL01_LPAL1	(0x0b)
#define LIST_COL01_LPAL2	(0x0a)

#define LIST_COL02_FPAL1	(0x01)
#define LIST_COL02_SPAL1	(0x02)
#define LIST_COL02_RPAL1	(0x03)
#define LIST_COL02_RSPAL1	(0x04)
#define LIST_COL02_FPAL2	(0x05)
#define LIST_COL02_SPAL2	(0x06)
#define LIST_COL02_RPAL2	(0x07)
#define LIST_COL02_RSPAL2	(0x08)
#define LIST_COL02_BPAL1	(0x0c)
#define LIST_COL02_BPAL2	(0x0d)
#define LIST_COL02_LPAL1	(0x0e)
#define LIST_COL02_LPAL2	(0x0d)

///リストデザイン描画
#define LIST_F_BPY	(2)
#define LIST_F_SY	(20)
#define LIST_L_SY	(4)
#define LIST_L_SX	(27*8)

#define LIST_NM_PX	(8)		///<デザイン領域オフセット
#define LIST_NM_BPX	(16)	///<フォント描画領域オフセット
#define LIST_NM_PY	(0)
#define LIST_NM_SX	(10*8+2)

#define LIST_TR_PX	(11*8+2)
#define LIST_TR_BPX	(LIST_TR_PX+4)
#define LIST_TR_SX	(15*8+6)

///リストタッチ領域定義
#define LIST_TP_PL	(8)
#define LIST_TP_PR	(28*8)
#define LIST_TP_SY	(24)
#define LIST_TP_PY01	(1*8)
#define LIST_TP_PY02	(LIST_TP_PY01+LIST_TP_SY)
#define LIST_TP_PY03	(LIST_TP_PY02+LIST_TP_SY)
#define LIST_TP_PY04	(LIST_TP_PY03+LIST_TP_SY)
#define LIST_TP_PY05	(LIST_TP_PY04+LIST_TP_SY)
#define LIST_TP_PY06	(LIST_TP_PY05+LIST_TP_SY)

#define SORT_TP_PL	(4)
#define SORT_TP_PR	(SORT_TP_PL+32)
#define SORT_TP_SY	(16)
#define SORT_TP_OY	(24)
#define SORT_TP_PY01	(8)
#define SORT_TP_PY02	(SORT_TP_PY01+SORT_TP_OY)
#define SORT_TP_PY03	(SORT_TP_PY02+SORT_TP_OY)
#define SORT_TP_PY04	(SORT_TP_PY03+SORT_TP_OY)
#define SORT_TP_PY05	(SORT_TP_PY04+SORT_TP_OY)
#define SORT_TP_PY06	(SORT_TP_PY05+SORT_TP_OY)
#define SORT_TP_PY07	(SORT_TP_PY06+SORT_TP_OY)

#define SBTN_TP_PL	(LIST_TP_PR)
#define SBTN_TP_PR	(LIST_TP_PR+24)
#define SBTN_TP_PY01 (LIST_TP_PY01)
#define SBTN_TP_SY	(72)
#define SBTN_TP_PY02 (SBTN_TP_PY01+SBTN_TP_SY)

///アクター定義値
enum{
 TACT_START = 0,
 TACT_CLU = TACT_START,
 TACT_CLD,
 TACT_CRU,
 TACT_CRD,
 TACT_ALLOWU,
 TACT_ALLOWD,
 TACT_SEL01,
 TACT_SEL02,
 TACT_SEL03,
 TACT_SEL04,
 TACT_SEL05,
 TACT_SEL06,
 TACT_SEL07,
 TACT_BTN01,
 TACT_NUM,
 TACT_MAX=TACT_NUM,
};
#define PGTEL_ACTMAX (TACT_MAX)

#define RESACT_TELOAM	(0)

enum{
 ANM_H_ALLOWU,
 ANM_H_ALLOWD,
 ANM_H_CLU,
 ANM_H_CLD,
 ANM_H_CRU,
 ANM_H_CRD,
 ANM_H_SORT,
 ANM_H_SORT2,
 ANM_H_BTN,
};

///リスト選択アクター表示位置
#define TACT_CL_PX1	(2*8)
#define TACT_CL_PX2	(28*8)
#define TACT_CL_PY	(1*8)
#define TACT_CL_SY	(24)

///BMPウィンドウ
enum{
 WIN_MSG,
 WIN_NAME,
 WIN_LIST,
 WIN_EXP,
 WIN_MAX,
};

///BMPウィンドウ定義
#define BG_BMPCHAR_BASE	(1023)
#define FONT_PAL	(0x01)

//ガイドウィンドウキャラクタエリア(送りマークetc)
#define BMP_TALK_WIN_CGX	(BG_BMPCHAR_BASE-TALK_WIN_CGX_SIZ)

//ガイド(メッセージ描画エリア)
#define BMPL_MSG_PX	(2)
#define BMPL_MSG_PY	(19)
#define BMPL_MSG_SX	(27)
#define BMPL_MSG_SY	(4)
#define BMPL_MSG_PAL	(FONT_PAL)
#define BMPL_MSG_CGX	(BMP_TALK_WIN_CGX-BMPL_MSG_SX*BMPL_MSG_SY)
#define BMPL_MSG_FRM	(GF_BGL_FRAME2_S)

#define BMPL_NAME_PX	(4)
#define BMPL_NAME_PY	(16)
#define BMPL_NAME_SX	(9)
#define BMPL_NAME_SY	(2)
#define BMPL_NAME_PAL	(FONT_PAL)
#define BMPL_NAME_CGX	(BMPL_MSG_CGX-BMPL_NAME_SX*BMPL_NAME_SY)
#define BMPL_NAME_FRM	(GF_BGL_FRAME2_S)

#define BMPL_LIST_PX	(1)
#define BMPL_LIST_PY	(2)
#define BMPL_LIST_SX	(27)
#define BMPL_LIST_SY	(3*LIST_LINE_MAX)
#define BMPL_LIST_PAL	(0x02)
#define BMPL_LIST_CGX	(BG_BMPCHAR_BASE-BMPL_LIST_SX*BMPL_LIST_SY)
#define BMPL_LIST_FRM	(GF_BGL_FRAME3_M)

///説明メッセージ用領域
#define BMPL_EXP_PX	(0)
#define BMPL_EXP_PY	(21)
#define BMPL_EXP_SX	(32)
#define BMPL_EXP_SY	(2)
#define BMPL_EXP_PAL	(0x0A)
#define BMPL_EXP_CGX	(BG_BMPCHAR_BASE-BMPL_EXP_SX*BMPL_EXP_SY)
#define BMPL_EXP_FRM	(GF_BGL_FRAME1_M)

///セレクトボックス　リスト数

enum{
 SBOX_ID_CALL,
 SBOX_ID_SORT,
 SBOX_ID_DEPOSIT,
 SBOX_ID_ZUKAN01,	//ジョウトのみ
 SBOX_ID_ZUKAN02,	//全国・ジョウト
 SBOX_ID_ZUKAN03,	//全国のみ
 SBOX_ID_YESNO,		//YesNo
 SBOX_ID_MAX,
};

#define SBOX_CALL_MENU_CT		(3)
#define SBOX_SORT_MENU_CT		(5)
#define SBOX_DEPOSIT_MENU_CT	(2)
#define SBOX_ZUKAN01_MENU_CT	(2)
#define SBOX_ZUKAN02_MENU_CT	(3)
#define SBOX_YESNO_MENU_CT		(2)

#define SBOX_CALL_MENU_WIDTH	(16)
#define SBOX_SORT_MENU_WIDTH	(16)
#define SBOX_DEPOSIT_MENU_WIDTH	(22)
#define SBOX_ZUKAN_MENU_WIDTH	(22)
#define SBOX_YESNO_MENU_WIDTH	(16)

#define SBOX_YN_CT	(2)

#define SBOX_WPAL		(0x0D)	///<セレクトボックス枠パレット
#define SBOX_FPAL		(0x0C)	///<セレクトボックスフォントパレット
#define SBOX_WCGX		(BMPL_EXP_CGX-SBOX_WINCGX_SIZ)	///<セレクトボックス枠用cgx
#define SBOX_FCGX_SIZ	(2*5*16)	///<セレクトボックスフォント領域cgx　占有サイズ(最大取り得る分を定義)
#define SBOX_FCGX		(SBOX_WCGX-SBOX_FCGX_SIZ)	///<セレクトボックスフォント領域cgx

///説明メッセージのパレット
#define FCOL_EXPMSG_FILL	(0x05)
#define FCOL_EXPMSG	GF_PRINTCOLOR_MAKE(3,2,FCOL_EXPMSG_FILL)
#define FCOL_TELMSG	GF_PRINTCOLOR_MAKE(1,2,0)

#endif	//__H_PGTEL_DEF_H__
